package com.cherrish.demo.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author cherrish
 * @time 2019-04-25 11:12
 * @name GreetServiceImpl
 * @desc:
 */
public class GreetServiceImpl extends UnicastRemoteObject implements GreetService{
    private static final long serialVersionUID = -5071576810834650267L;

    public GreetServiceImpl() throws RemoteException {
    }

    @Override
    public String hello(String name) throws RemoteException {
        return "Hello " + name;
    }
}
